//
//  GroupsArrayController.h
//  Words2
//
//  Created by Mathieu Tozer on 11/09/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "WordArrayController.h"
@class LanguageArrayController;


@interface GroupsArrayController : NSArrayController {
	IBOutlet NSTableView *tableView;
	IBOutlet WordArrayController* wordController;
	IBOutlet LanguageArrayController* languageArrayController;
	
	NSMutableDictionary *currentLanguageGroupSelection;

}
- (void)registerAsObserver;

-(IBAction)addSmart:(id)sender;
-(IBAction)addManual:(id)sender;
-(void)languageSelectionDidChange;

-(void)setSelectionToLibrary;
-(void)selectionWillChange;

// table view drag and drop support
- (NSDragOperation)tableView:(NSTableView*)tv validateDrop:(id <NSDraggingInfo>)info proposedRow:(int)row proposedDropOperation:(NSTableViewDropOperation)op;
- (BOOL)tableView:(NSTableView *)aTableView acceptDrop:(id <NSDraggingInfo>)info row:(int)row dropOperation:(NSTableViewDropOperation)operation;

@end
